package com.readbook.service;

import com.readbook.dao.WscdhDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class WscdhService {
    @Autowired
    private WscdhDao wscdhDao;

    public List<Map<String, Object>> getScdhNow(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.getScdhNow(gmap);
        return list1;
    }


    public List<Map<String, Object>> getScdhTmByPid(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.getScdhTmByPid(gmap);
        return list1;
    }


    public int insertBookanswer(Map<String, Object> gmap) {
        return wscdhDao.insertBookanswer(gmap);
    }


    public List<Map<String, Object>> getUserDtqk(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.getUserDtqk(gmap);
        return list1;
    }

    public List<Map<String, Object>> getscdhPmBynj(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.getscdhPmBynj(gmap);
        return list1;
    }


    public int countscdhPmBynj(Map<String, Object> gmap) {
        return wscdhDao.countscdhPmBynj(gmap);
    }


    public List<Map<String, Object>> getmyScdhInfo(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.getmyScdhInfo(gmap);
        return list1;
    }


    public List<Map<String, Object>> myLastScdhInfo(Map<String, Object> gmap) {
        List<Map<String, Object>> list1 = wscdhDao.myLastScdhInfo(gmap);
        return list1;
    }


}


